package com.qf.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (Patient)实体类
 *
 * @author makejava
 * @since 2024-04-30 09:17:56
 */
public class Patient implements Serializable {
    private static final long serialVersionUID = 612749997522719923L;
/**
     * 患者id
     */
    private Long patientId;
/**
     * 患者姓名
     */
    private String patientName;
/**
     * 就诊卡号,用于关联
     */
    private String card;
/**
     * 证件类型
     */
    private String idType;
/**
     * 证件号码
     */
    private String idNum;
/**
     * 微信昵称
     */
    private String wechatName;
/**
     * 手机号码
     */
    private String phone;
/**
     * 就诊人地址
     */
    private String address;
/**
     * 关系
     */
    private String relationship;
/**
     * 头像
     */
    private String avatar;
/**
     * 预约时间
     */
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//  @JsonFormat  1将接收得到的json数据中对应birthday 时间转换 java中Date
//               2.处理器方法返回json数据时 将java中Date  转换为对应的字符串时间   yyyy-MM-dd
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date orderTime;
/**
     * 体检套餐
     */
    private String patientPackage;
/**
     * 状态
     */
    private String status;


    public Long getPatientId() {
        return patientId;
    }

    public void setPatientId(Long patientId) {
        this.patientId = patientId;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public String getIdType() {
        return idType;
    }

    public void setIdType(String idType) {
        this.idType = idType;
    }

    public String getIdNum() {
        return idNum;
    }

    public void setIdNum(String idNum) {
        this.idNum = idNum;
    }

    public String getWechatName() {
        return wechatName;
    }

    public void setWechatName(String wechatName) {
        this.wechatName = wechatName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getRelationship() {
        return relationship;
    }

    public void setRelationship(String relationship) {
        this.relationship = relationship;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public String getPatientPackage() {
        return patientPackage;
    }

    public void setPatientPackage(String patientPackage) {
        this.patientPackage = patientPackage;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

}

